///PHILOTES Source Code.  (C)2012 PhiloLabs

// Implements a static list which keeps track of all refcounted objects
// to detect refcounting leaks at application shutdown. Will only
// be active when the application is compiled in debug mode.

#pragma once

#include "core/types.h"
#include "util/list.h"

//------------------------------------------------------------------------------
namespace Core
{
class RefCounted;

class RefCountedList : public Util::List<RefCounted*>
{
public:
    /// dump memory leaks, this methods is called by RefCounted::DumpRefCountedLeaks()
    void DumpLeaks();
};

}
//------------------------------------------------------------------------------
